package com.sykj.bsc.jhy.service.serviceImpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sykj.bsc.jhy.entity.Bis_bag_project;
import com.sykj.bsc.jhy.entity.Bis_bag_record;
import com.sykj.bsc.jhy.entity.Bis_business_order;
import com.sykj.bsc.jhy.entity.Bis_nurse_bag;
import com.sykj.bsc.jhy.entity.Bis_nurse_project;
import com.sykj.bsc.jhy.entity.Bis_nurse_type;
import com.sykj.bsc.jhy.entity.Bis_order_deposit;
import com.sykj.bsc.jhy.entity.Bis_project_record;
import com.sykj.bsc.jhy.mapper.Bis_nurse_projectMapper;
import com.sykj.bsc.jhy.service.Bis_nurse_projectService;

@Service
public class Bis_nurse_projectServiceImpl implements Bis_nurse_projectService {

	@Autowired
	Bis_nurse_projectMapper mapper;

	// 护理项目列表
	@Override
	public List<Bis_nurse_project> selectBis_nurse_project(Bis_nurse_project bis_nurse_project) {
		return mapper.selectBis_nurse_project(bis_nurse_project);
	}

	// 护理项目类型
	@Override
	public List<Bis_nurse_type> selectBis_nurse_type() {
		return mapper.selectBis_nurse_type();
	}

	// 删除护理项目列表记录
	@Override
	public void delBis_nurse_project(Integer project_id) {
		mapper.delBis_nurse_project(project_id);

	}

	// 新增护理列表
	@Override
	public void addBis_nurse_project(Bis_nurse_project bis_nurse_project) {
		mapper.addBis_nurse_project(bis_nurse_project);

	}

	// 根据id查询项目信息
	@Override
	public Bis_nurse_project queryById(Integer project_id) {
		return mapper.queryById(project_id);
	}

	// 修改项目信息
	@Override
	public void updateBis_nurse_project(Bis_nurse_project bis_nurse_project) {
		mapper.updateBis_nurse_project(bis_nurse_project);
	}

	// 前台护理列表
	@Override
	public List<Bis_nurse_project> selectBis_nurse_projectReception(Bis_nurse_project bis_nurse_project) {
		return mapper.selectBis_nurse_projectReception(bis_nurse_project);
	}

	// 前台护理详情
	@Override
	public List<Bis_nurse_project> selectByIdproject(Integer project_id) {
		return mapper.selectByIdproject(project_id);
	}

	/**
	 * 池磊创建 
	 * @param project_id
	 * @return
	 */
	//池磊创建 用途：显示商品详细信息
	@Override
	public Bis_nurse_project getBis_nurse_projectId(String project_id) {
		return mapper.getBis_nurse_projectId(project_id);
	}
	//池磊创建 用途：显示礼包详细信息
	@Override
	public List<Bis_nurse_bag> selectBis_nurse_bag() {
		return mapper.selectBis_nurse_bag();
	}
	
	//池磊创建 用途：显示礼包详细信息 根据id
	@Override
	public Bis_nurse_bag getBis_nurse_bagByid(String bag_id) {
		// TODO Auto-generated method stub
		return mapper.getBis_nurse_bagByid(bag_id);
	}
	
	//池磊创建 用途：显示我的礼包详细信息
	@Override
	public List<Bis_bag_record> selectBis_bag_record(String custom_user_id) {
		return mapper.selectBis_bag_record(custom_user_id);
	}
	//池磊创建 用途：显示礼包详细信息
	@Override
	public Bis_bag_record getBis_bag_recordid(String bag_id) {
		return mapper.getBis_bag_recordid(bag_id);
	}
	//池磊创建 用途：查看礼包详细信息
	@Override
	public List<Bis_project_record> selectBis_project_record(Map map) {
		return mapper.selectBis_project_record(map);
	}
	//池磊创建 用途：用来查看订单详情
	@Override
	public List<Bis_business_order> selectBis_business_order(Map map) {
		return mapper.selectBis_business_order(map);
	}
	//池磊创建 用途：用来查礼包与项目信息表 这是用来查询 护理项目信息表 和 礼包信息表
	@Override
	public List<Bis_bag_project> selectBis_bag_projectById(String bag_id) {
		// TODO Auto-generated method stub
		return mapper.selectBis_bag_projectById(bag_id);
	}
	
	//池磊创建 用途：从订单信息跳转到订单详情
	public Bis_business_order getBis_business_orderByid(Map map){
		return mapper.getBis_business_orderByid(map);
	};
	
	//池磊创建 用途：用来查礼包与项目 的定金
	public Bis_order_deposit getBis_order_depositByid(String order_id){
		return mapper.getBis_order_depositByid(order_id);
	};
}
